package recordsDatabase;

import java.io.Serializable;
import java.util.ArrayList;



public class CategoryDetails implements Serializable{
	/**
	 * 
	 */
	private static final long serialVersionUID = -1221296722407765679L;
	private String field;
	private ArrayList<Person> personsList;
	
	public CategoryDetails(String value){
		this.field=value;
		personsList = new ArrayList<Person>(); 
	}
	
	public ArrayList<Person> getPersonsList(){
		return personsList;
	}
	
	public void addPerson(Person p){
		personsList.add(p);
	}
	
	public String getField(){
		return this.field;
	}
}
